package com.itheima.pojo;

public class Student {
    private int id;
    private String name;

    public Student() {
        System.out.println("1.student实例化");
    }
    public void init(){
        System.out.println("3.初始化");
    }
    public void distory(){
        System.out.println("5.销毁");
    }

    public int getId() {
        System.out.println("4.使用");
        return id;
    }

    public void setId(int id) {
        System.out.println("2.给属性赋值");
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
